package com.woniu.command.handler;

import com.woniu.adapter.RegionAdapter;
import com.woniu.outlet.po.RegionPo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RegionCommandHandler {

    @Autowired
    private RegionAdapter regionAdapter;



    public Integer addRegion(RegionPo regionPo){
        regionAdapter.addRegion(regionPo);
        return 1;
    }

    public Integer updateRegion(RegionPo regionPo){
        regionAdapter.updateRegion(regionPo);
        return 1;
    }

    public Integer deleteRegionById(Long id){
        regionAdapter.deleteRegionById(id);
        return 1;
    }



}
